import React from 'react';
import {messages} from "share/common";
import { Row } from 'antd'
import ShowInfo from '../show-info'

const FlightInfo = ({data}) => {
  const hrLine = {
    border:'0.5px solid #e8e8e8',
    marginBottom:14,
  }
  return (
    <div>
      {
        data.map((data, index) => {
          return (
            <div>
              <h3 style={{marginLeft:24}}>{messages('supplier.key532')/*航班*/}{index + 1}</h3>
              <hr style={{border:'0.5px solid #e8e8e8'}}/>
              <div style={{padding:'12px 24px'}}>
                <h4>{messages('supplier.key370')/*航班信息*/}</h4>
                <Row>
                  <ShowInfo label={messages('supplier.key371')/*航程序号*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key372')/*航班号*/} value={data.flight} />
                  <ShowInfo label={messages('supplier.key373')/*航空公司代码*/} value={data.airLineCode} />
                  <ShowInfo label={messages('supplier.key374')/*航空公司名称*/} value={data.airLineName} />
                  <ShowInfo label={messages('supplier.key375')/*起飞时间*/} value={data.takeoffTime} />
                  <ShowInfo label={messages('supplier.key376')/*到达时间*/} value={data.arrivalTime} />
                  <ShowInfo label={messages('supplier.key377')/*出发城市名称*/} value={data.dCityName} />
                  <ShowInfo label={messages('supplier.key378')/*出发城市名称英文*/} value={data.dCityNameEN} />
                  <ShowInfo label={messages('supplier.key379')/*出发城市三字码*/} value={data.dCityCode} />
                  <ShowInfo label={messages('supplier.key380')/*出发机场*/} value={data.dPortName} />
                  <ShowInfo label={messages('supplier.key381')/*出发机场三字码*/} value={data.dPortCode} />
                  <ShowInfo label={messages('supplier.key382')/*出发航站楼名称*/} value={data.dAirportName} />
                  <ShowInfo label={messages('supplier.key383')/*出发航站楼英文名*/} value={data.dAirportNameEn} />
                  <ShowInfo label={messages('supplier.key384')/*到达城市名称*/} value={data.aCityName} />
                  <ShowInfo label={messages('supplier.key385')/*到达城市名称英文*/} value={data.aCityNameEN} />
                  <ShowInfo label={messages('supplier.key386')/*到达城市三字码*/} value={data.aCityCode} />
                  <ShowInfo label={messages('supplier.key387')/*到达机场*/} value={data.aPortName} />
                  <ShowInfo label={messages('supplier.key388')/*到达机场三字码*/} value={data.aCityCode} />
                  <ShowInfo label={messages('supplier.key389')/*到达航站楼名称*/} value={data.aAirportName} />
                  <ShowInfo label={messages('supplier.key390')/*到达航站楼英文名*/} value={data.aAirportNameEN} />
                  <ShowInfo label={messages('supplier.key391')/*到达航站楼简称*/} value={data.aAirportShortname} />
                  <ShowInfo label={messages('supplier.key392')/*出发航站楼简称*/} value={data.dAirportShortname} />
                  <ShowInfo label={messages('supplier.key393')/*里程数*/} value={data.tpm} />
                  <ShowInfo label={messages('supplier.key394')/*飞行时长(分钟)*/} value={data.flightTime} />
                </Row>
                <hr style={hrLine}/>
                <h4>{messages('supplier.key395')/*经停信息*/}</h4>
                <Row>
                  <ShowInfo label={messages('supplier.key396')/*经停机场*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key397')/*经停城市*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key398')/*经停城市ID*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key399')/*经停时长*/} value={data.name} />
                </Row>
                <hr style={hrLine}/>
                <h4>{messages('supplier.key330')/*价格信息*/}</h4>
                <Row>
                  <ShowInfo label={messages('supplier.key400')/*协议类型*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key401')/*机票价格(票+燃油+机建)*/} value={data.amount} />
                  <ShowInfo label={messages('supplier.key402')/*票价*/} value={data.price} />
                  <ShowInfo label={messages('supplier.key403')/*机票票面价*/} value={data.printPrice} />
                  <ShowInfo label={messages('supplier.key404')/*机票折扣*/} value={data.priceRate} />
                  <ShowInfo label={messages('supplier.key405')/*燃油费*/} value={data.oilFee} />
                  <ShowInfo label={messages('supplier.key406')/*税/基建费*/} value={data.tax} />
                  <ShowInfo label={messages('supplier.key407')/*服务费*/} value={data.serverFee} />
                  <ShowInfo label={messages('supplier.key408')/*乘客种类*/} value={data.ageType} />
                  <ShowInfo label={messages('supplier.key409')/*父舱位类型*/} value={data.classType} />
                  <ShowInfo label={messages('supplier.key410')/*父舱位名称*/} value={data.className} />
                  <ShowInfo label={messages('supplier.key411')/*子舱位名称*/} value={data.subClass} />
                  <ShowInfo label={messages('supplier.key412')/*票台号*/} value={data.officeNo} />
                  <ShowInfo label={messages('supplier.key413')/*是否可改期*/} value={data.nonRer} />
                  <ShowInfo label={messages('supplier.key414')/*改期规则*/} value={data.rerNotes} />
                  <ShowInfo label={messages('supplier.key415')/*是否可退票*/} value={data.nonRef} />
                  <ShowInfo label={messages('supplier.key416')/*退票规则*/} value={data.refNotes} />
                  <ShowInfo label={messages('supplier.key417')/*是否可转签*/} value={data.nonEnd} />
                  <ShowInfo label={messages('supplier.key418')/*转签规则*/} value={data.endNotes} />
                  <ShowInfo label={messages('supplier.key419')/*标准价(该舱位等全价)*/} value={data.standardPrice} />
                  <ShowInfo label={messages('supplier.key420')/*Y舱标准价*/} value={data.eClassStandardPrice} />
                  <ShowInfo label={messages('supplier.key421')/*是否有餐食*/} value={data.hasMeal} />
                </Row>
                <hr style={hrLine}/>
                <h4>{messages('supplier.key422')/*低价管控*/}</h4>
                <Row>
                  <ShowInfo label={messages('supplier.key423')/*低价管控超标规则代码*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key424')/*低价管控超标规则描述*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key425')/*最低价航班号*/} value={data.lowFlight} />
                  <ShowInfo label={messages('supplier.key426')/*最低价航班舱位*/} value={data.lowClass} />
                  <ShowInfo label={messages('supplier.key427')/*低价航班价格*/} value={data.lowestPrice} />
                  <ShowInfo label={messages('supplier.key428')/*低价航班折扣率*/} value={data.lowRate} />
                  <ShowInfo label={messages('supplier.key429')/*低价航班起飞时间*/} value={data.lowDTime} />
                  <ShowInfo label={messages('supplier.key430')/*超标原因*/} value={data.name} />
                </Row>
                <hr style={hrLine}/>
                <h4>{messages('supplier.key431')/*审批单管控*/}</h4>
                <Row>
                  <ShowInfo label={messages('supplier.key432')/*审批单管控超标规则代码*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key433')/*审批单管控超标规则描述*/} value={data.name} />
                  <ShowInfo label={messages('supplier.key430')/*超标原因*/} value={data.name} />
                </Row>
              </div>
            </div>
          )
        })
      }
    </div>
  )
}

export default FlightInfo;
